package com.platform.usercenter.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.platform.common.core.annotation.Excel;
import com.platform.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 联系人关系对象 contact_relation
 *
 * @author platform
 * @date 2023-10-08
 */
public class ContactRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通讯录关系主键 */
    private Long id;

    /** 联系人id */
    @Excel(name = "联系人id")
    private Long userId;

    /** 联系人姓名 */
    @Excel(name = "联系人姓名")
    private String contactId;

    /** 是否删除  Y 删除 N未删除 */
    @Excel(name = "是否删除  Y 删除 N未删除")
    private String isDelete;

    /** 更新者 */
    @Excel(name = "更新者")
    private String deleteBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setContactId(String contactId)
    {
        this.contactId = contactId;
    }

    public String getContactId()
    {
        return contactId;
    }
    public void setIsDelete(String isDelete)
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete()
    {
        return isDelete;
    }
    public void setDeleteBy(String deleteBy)
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy()
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime)
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime()
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("contactId", getContactId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
